const express = require('express');

const app = express();

const router = require('./router');

// 访问静态目录
// app.use('/aaa', express.static('./static'));

// app.use(express.static('./static'));

// app.get('/', (req, res) => {
//   res.send('Hello World!');
// });

// app.post('/', (req, res) => {
//   res.send('Got a POST request');
// });

// 使用express 路由
app.use(router);

app.listen(3000, () => {
  console.log('Server listening on port 3000');
}
);
